package com.lifa.dao;

import com.lifa.entity.Chanpin;
import com.lifa.entity.Taocan;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TaocanPeizhiDao {
    public List<Taocan> query();

    /**
     * 模糊查询根据id，name
     * @return
     */
    public List<Taocan> queryByName(Map<String, Object> map);
    public List<Taocan> queryPage(@Param("name") String name, @Param("offset") int offset, @Param("limit") int limit) ;
    public int getTotalCount(@Param("name") String name);

    /**
     * 根据商品id查询
     * @param shangpin_Id
     * @return
     */
    public List<Taocan> queryId(int shangpin_Id);
}
